﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PBOfficeMaster.master" AutoEventWireup="true"
    CodeFile="AddressBook.aspx.cs" Inherits="CommonInfoManager_AddressBook" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .branchtop
        {
            margin: 10px 50px;
            text-align: left;
            font-size: 12px;
        }
        .lbBranch
        {
            font-size: 14px;
            font-weight: bold;
            background-image: url('../imges/daohangbeijing1.jpg');
            background-repeat: no-repeat;
            text-align: center;
            margin: 0;
            color: White;
            padding-top: 7px;
            height: 22px;
            width: 110px;
        }
        .btnBranch
        {
            width: auto;
            height: 20px;
            background-color: #ccffff;
            border: 1px solid #000099;
            color: #000099;
        }
        hr
        {
            height: 1px;
            margin-left: 45px;
            color: Blue;
            width: 804px;
        }
        .txt
        {
            border: 1px solid #6699FF;
            color: Blue;
        }
        .grid
        {
            text-align: center;
            font-size:12px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 864px; font-size: 14px;">
        <div class="branchtop">
            <table>
                <tr>
                    <td>
                        当前位置
                    </td>
                    <td>
                        <div class="lbBranch">
                            通讯录</div>
                    </td>
                </tr>
            </table>
        </div>
        <hr />
        <div style="text-align: left; margin: 7px 100px; width: 740px; height: 30px; border: 1px solid #ccc;">
            部门：<asp:TextBox ID="txtDept" CssClass="txt" runat="server" Height="20px" Width="143px"></asp:TextBox>&nbsp;
            岗位：<asp:DropDownList ID="ddlPosition" runat="server" DataTextField="PosName" Height="20px"
                Width="116px">
            </asp:DropDownList>
            &nbsp;&nbsp; 姓名：<asp:TextBox ID="txtName" CssClass="txt" runat="server" Height="25px"
                Width="122px"></asp:TextBox>
            &nbsp;
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/imges/serch.jpg" OnClick="ImageButton2_Click" />
        </div>
        <div style="text-align: left; margin: 7px 100px;">
            <asp:GridView ID="GridView1" runat="server" Width="740px" AutoGenerateColumns="False"
                BorderColor="#009999" Height="98px" PageSize="1">
                <Columns>
                    <asp:BoundField DataField="StfCode" HeaderText="员工编号" />
                    <asp:BoundField DataField="StfName" HeaderText="姓名" />
                    <asp:TemplateField HeaderText="部门">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Department.DeptName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("Department.DeptName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="岗位">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Position.PosName") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("Position.PosName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="TelePhone" HeaderText="座机" />
                    <asp:BoundField DataField="Mail" HeaderText="Mail" />
                    <asp:BoundField DataField="MobilePhone" HeaderText="手机" />
                    <asp:BoundField DataField="Address" HeaderText="地址" />
                    <asp:BoundField DataField="Zip" HeaderText="邮编" />
                </Columns>
                <AlternatingRowStyle BackColor="#CCFFCC" />
                <HeaderStyle BackColor="#66CCFD" ForeColor="White" CssClass="grid" Height="25px" />
                <RowStyle CssClass="grid" />
            </asp:GridView>
        </div>
        <div  style="text-align: left; margin: 7px 100px;">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" 
                CustomInfoHTML="第 %CurrentPageIndex% 页/共 %PageCount%页" 
                CustomInfoTextAlign="Right" Direction="LeftToRight" FirstPageText="首页" 
                LastPageText="尾页" MoreButtonType="Image" NextPageText="下一页" 
                onpagechanged="AspNetPager1_PageChanged" PageSize="1" 
                PagingButtonLayoutType="Span" PrevPageText="上一页" ShowCustomInfoSection="Left" 
                ShowMoreButtons="False" ShowPageIndex="False" ShowPageIndexBox="Always" 
                SubmitButtonText="GO" UrlPageIndexName="pageIndex" UrlPageSizeName="pageSize" 
                UrlPaging="True">
            </webdiyer:AspNetPager>
</div>
    </div>
</asp:Content>
